//
//  UserInfoModel.m
//  Code
//
//  Created by apple on 17/10/29.
//  Copyright © 2017年 HD. All rights reserved.
//

#import "UserInfoModel.h"

@implementation UserInfoModel

//单例模型
+(instancetype)shareUser
{
    static UserInfoModel *model=nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        model=[[UserInfoModel alloc]init];
    });
    return model;
}


//填充字典
-(void)setDic:(NSDictionary *)dic
{
    _dic=dic;
    self.beginTime=[[dic objectForKey:@"beginTime"] longLongValue];
    self.code=[[dic objectForKey:@"code"] description];
    self.endTime=[[dic objectForKey:@"endTime"] longLongValue];
    self.msg=[[dic objectForKey:@"msg"] description];
    self.roomId=[[dic objectForKey:@"roomId"] description];
    
    self.roomState=[dic objectForKey:@"roomState"];
    self.seconds=[dic objectForKey:@"seconds"];
    self.sessonId=[dic objectForKey:@"sessonId"];
    self.trueRoomId=[dic objectForKey:@"trueRoomId"];
    self.userId=[dic objectForKey:@"userId"];
    self.userType=[dic objectForKey:@"userType"];
    self.userTypeName=[dic objectForKey:@"userTypeName"];
    self.appKey=[dic objectForKey:@"appKey"];
    self.token=[dic objectForKey:@"token"];
    
}




@end
